import BaseDao from './base';

export default class EmailsDao extends BaseDao {

  modelName = 'Emails';

  constructor(modules) {
    super(modules);
  }

  async getEmailsAll(emails) {
    return await this.findAll(emails);
  }

  async getEmailslist(emails) {
    return await this.findAndCountAll(emails);
  }

  async addEmails(emails) {
    return await this.insert(emails);
  }
}